package com.whoimi.admin.service;

import com.whoimi.admin.entity.form.MenuForm;
import com.whoimi.admin.entity.vo.MenuVO;
import com.whoimi.admin.entity.vo.RouteVO;
import com.whoimi.admin.model.Option;

import java.util.List;

/**
 * @author whoimi
 * @since 2025-07-25
 **/
public interface MenuService {
    List<RouteVO> getCurrentUserRoutes(String username);

    List<MenuVO> listMenus();

    void saveMenu(MenuForm menuForm);

    List<Option<Long>> listMenuOptions(boolean onlyParent);

    MenuForm getMenuForm(Long id);
}
